#include "device.h"


Device::Device(QString sname, QString scolorCode)
{
	name = sname;
	colorCode = scolorCode;

}
//Device::~Device()
//{
//
//}


//DeviceModle::DeviceModle(QObject *parent)
//{
//
//
//}
//
//DeviceModle::~DeviceModle()
//{
//
//
//}
//
////void DeviceModle::addDevice(const Device &device)
////{
////    //beginInsertRows(QModelIndex(), rowCount(), rowCount());
////    m_devices << device;
////    //endInsertRows();
////}
//
//int DeviceModle::rowCount(const QModelIndex & parent) const {
//    Q_UNUSED(parent);
//    return m_devices.count();
//}
//
////QVariant DeviceModle::data(const QModelIndex & index, int role) const {
////    if (index.row() < 0 || index.row() >= m_devices.count())
////        return QVariant();
//
////    const Device &device = m_devices[index.row()];
////    if (role == TypeRole)
////        return device.type();
////    else if (role == SizeRole)
////        return device.size();
////    return QVariant();
////}
